//
//  MKAPITestTimerAPIBase.h
//  MKAPITests
//
//  Created by 苏尚进 on 2022/8/15.
//  Copyright © 2022 moon. All rights reserved.
//

#import <MKAPI/MKAPI.h>
#import "NSTimer+MKAPITest.h"
#import <XCTest/XCTest.h>

NS_ASSUME_NONNULL_BEGIN

@interface MKAPITestTimerAPIBase : MKAPITask
@property(nonatomic,readonly) NSTimeInterval duration;

@property(nonatomic,strong) XCTestExpectation *cancelExpectation;
@property(nonatomic,strong) XCTestExpectation *completionExpectation;
@property(nonatomic,strong) XCTestExpectation *beginExpectation;
@property(nonatomic,strong) XCTestExpectation *progressExpectation;

- (XCTestExpectation *)createCancelExpectationsWithTestCase:(XCTestCase *)testCase;
- (XCTestExpectation *)createCompletionExpectationsWithTestCase:(XCTestCase *)testCase;
- (XCTestExpectation *)createBeginExpectationsWithTestCase:(XCTestCase *)testCase;
- (XCTestExpectation *)createProgressExpectationsWithTestCase:(XCTestCase *)testCase;

- (id)initWithDuration:(NSTimeInterval)duration;
- (void)doRunTimerTask;
@end

@interface MKAPITestTimerAPISuccess : MKAPITask

@end

NS_ASSUME_NONNULL_END
